<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .box {
            width: 60px;
            height: 60px;
            margin: 100px auto;
            overflow: hidden;
            border-radius: 18px;
        }

        a {
            display: block;
            width: 120px;
            height: 60px;
            background: #ff6a00;
            transition: .3s;

        }

        a::before {
            content: '';
            float: left;
            width: 60px;
            height: 60px;
            background: url(./mi-logo.png) no-repeat center;
        }

        a::after {
            content: '';
            float: left;
            width: 60px;
            height: 60px;
            background: url(./mi-home.png) no-repeat center;
        }

        .box:hover a {
            margin-left: -60px;
        }
    </style>
</head>

<body>
    <div class="box">
        <a href="#">
        </a>
    </div>

</body>

</html>